import React from 'react'
import {NavLink} from 'react-router-dom'
import './index.css'
export default class Routers extends React.Component{
    render(){
        return(
            <div>
               {/* <Switch> */}
               <NavLink to="/home" exact>首页</NavLink>
                <NavLink to="/login" exact>登录页面</NavLink>
                <NavLink to="/detail" exact>详情页面</NavLink>
                <NavLink to="/demo" exact>高阶组件</NavLink>
               {/* </Switch> */}
            </div>
        )
    }
}